package apii.servlet;

/**
 * 
 * @author evgeniy
 *
 */
public class UserRequesterData {

	public static final int UNKNOWN_ID = -1;
	
	public static final int USER_INCORRECT = 0;
	
	public static final int UNKNOWN_ROLE = 0;
	public static final int ROLE_PROF = 1;
	public static final int ROLE_STUD = 2;
	
	public UserRequesterData(String sessionId, String name, String surname, String patronimic,
			boolean logged, int role, int userId, String password, String groupName) {
		this.role = role;
		this.logged = logged;
		this.sessionId = sessionId;
		this.name = name;
		this.surname = surname;
		this.patronimic = patronimic;
		this.userId = userId;
		this.password = password;
		this.groupName = groupName;
	}
	
	public final int userId;
	public final int role;
	public final boolean logged;
	public final String sessionId;
	public final String name;
	public final String surname;
	public final String patronimic;
	public final String password;
	public final String groupName;
}
